Skip to main content

Change base URL

  • Open <project>/lib/src/global/api_helper.dart and replace baseUrl variable value with your own URL

    • Ensure that don’t put slash(/) at the end of your base url like

      static const String baseUrl = 'https://your_server_ip:your_port/api/';
    • Put your base url like that –

      static const String baseUrl = 'https://your_server_ip:your_port/api';
    Warning

    Do not change Port the Port will automatically taken. But if you want to change it change port in server and update the App's Port also.

  • If you change the port of associate server than also Cofigure this (Optional)

    • For socket And Peer Connection you have to change the base url.

    • Open <project>/lib/src/global/api_helper.dart and replace baseUrlIp variable value with your own

      static const String baseUrlIp = 'your_server_ip';